select sum in laravel

83

laravel select where with total sum query to get all data with sum -

$query =  SalesPayment::select('*', \DB::raw('SUM(amount) AS total_sale_amount')->with ....

Comments

Submit
0 Comments